package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

@Data
public class User{
    @TableId(type=IdType.AUTO)
    private Long id;
    @TableField(value="username",condition= SqlCondition.LIKE)
    private String username;
    private String password;
    private String phone;
    private String address;
    private  String school;
    private String mail;
    private  String pic;
    @TableField(exist = false)
    private Boolean register;
}
